﻿using System;
using SqlSugar;
using Models.generationcenter.Base;

namespace Models.generationcenter
{
    /// <summary>
    /// 案件表
    /// </summary>

    [SugarTable("tb_case")]
    public partial class Case : BaseModel
    {
        /// <summary>
        /// 案号（华宇给的）
        /// </summary>
        public string case_number { get; set; }
        /// <summary>
        /// 案件编号（华宇给的）
        /// </summary>
        public string case_code { get; set; }
        /// <summary>
        /// 案件名称（华宇给的）
        /// </summary>
        public string case_name { get; set; }
        /// <summary>
        /// 案件类型ID(字典表 （华宇给的Code）)
        /// </summary>
        public int? case_type_dic { get; set; }
        /// <summary>
        /// 承办部门名称（华宇给的）
        /// </summary>
        public string case_undertaking_department { get; set; }
        /// <summary>
        /// 字典表  承办部门id
        /// </summary>
        public string case_undertaking_department_dic { get; set; }
        /// <summary>
        /// 承办人（华宇给的）
        /// </summary>
        public string case_undertaker { get; set; }
        private DateTime? _case_new_time { get; set; }
        /// <summary>
        /// 案件新增时间
        /// </summary>
        public DateTime? case_new_time
        {
            get
            {
                if (_case_new_time==null)
                {
                    return null;
                }
                //https://docs.microsoft.com/zh-cn/dotnet/standard/base-types/standard-date-and-time-format-strings
                return DateTime.Parse(_case_new_time?.ToString("G"));
            }
            set { _case_new_time=value; }
        }
        private DateTime? _case_file_time { get; set; }
        /// <summary>
        /// 立案日期（华宇给的）
        /// </summary>
        public DateTime? case_file_time
        {
            get
            {
                if (_case_file_time==null)
                {
                    return null;
                }
                //https://docs.microsoft.com/zh-cn/dotnet/standard/base-types/standard-date-and-time-format-strings
                return DateTime.Parse(_case_file_time?.ToString("G"));
            }
            set { _case_file_time=value; }
        }
        /// <summary>
        /// 批次总数
        /// </summary>
        public int? case_batches_count { get; set; }
        /// <summary>
        /// 预字号（华宇给的）
        /// </summary>
        public string case_beforehand_number { get; set; }
        /// <summary>
        /// 原告名称（华宇给的）多个原告拼在一起
        /// </summary>
        public string case_plaintiff_name { get; set; }
        /// <summary>
        /// 被告名称（华宇给的）多个被告拼在一起
        /// </summary>
        public string case_defendant_name { get; set; }
        /// <summary>
        /// 案件的归档状态(字典表 )
        /// </summary>
        public int? case_file_state_dic { get; set; }
        /// <summary>
        /// 法院id(从权限平台里面拿到)
        /// </summary>
        //public int court_code { get; set; }
        /// <summary>
        /// 案件子类别（华宇给的）
        /// </summary>
        public string case_subcategory { get; set; }
        /// <summary>
        /// 华宇案件类型ID 
        /// </summary>
        public int hy_case_type_dic { get; set; }
        /// <summary>
        /// 数据中心的案件id
        /// </summary>
        public int data_center_caseid { get; set; }

    }
}
